<?php use_helper('Validation'); ?>

<?php echo form_tag('@default?lang='.$sf_user->getLang().'&module=comment&action=add', array('name' => 'comment')); ?>
<?php echo input_hidden_tag('id', $post->getId()); ?>
<fieldset>
<legend><?php echo __('Write Comment'); ?></legend>
  <dl>
    <dt><?php echo label_for('name', __('Name')); ?></dt>
    <dd><?php echo form_error('name') ?></dd>
    <dd><?php echo input_tag('name', '', array('class' => 'text-field')); ?></dd>
  </dl>
  <dl>
    <dt><?php echo label_for('email', __('Email')); ?> (<?php echo link_to('Gravatar', 'http://gravatar.com/'); ?>)</dt>
    <dd><?php echo form_error('email') ?></dd>
    <dd><?php echo input_tag('email', '', array('class' => 'text-field')); ?></dd>
  </dl>
  <dl>
    <dt><?php echo label_for('url', __('Website')); ?></dt>
    <dd><?php echo form_error('url') ?></dd>
    <dd><?php echo input_tag('url', '', array('class' => 'text-field')); ?></dd>
  </dl>
  <dl class="required">
    <dt><?php echo label_for('content', __('Comment')); ?></dt>
    <dd><?php echo form_error('content') ?></dd>
    <dd><?php echo textarea_tag('content', '', array('class' => 'textarea')); ?></dd>
  </dl>
  
  <?php include_partial('captcha/captcha'); ?>
  
  <dl>
    <dt>&nbsp;</dt>
    <dd>
        <?php echo submit_tag(__('Send'), array('class' => 'submit-button')); ?>
    </dd>
  </dl>
  
</fieldset>

</form>
